﻿<%@ Page Title="Re-SeSS Login" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="ReSeSSApplication.Index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"></asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="bodyContent" runat="server">


    <div class="hero-unit welcome-note">
        <h2>
            Welcome to Electronic Patient Record
        </h2>
    </div><!--welcome-note ends-->


    <script type="text/javascript">
        jQuery(document).ready(function () {
            jQuery('.login-form #bodyContent_txtLoginId').focus();
        });
	</script>
    
    <div class="row">
        <div class="span8 offset2">
        	<div class="well login-form">
            
            	<div class="alert alert-success" id="AlertSuccess" runat="server">An email sent to your email address. Please check your inbox.</div>
                <div class="alert alert-error" id="AlertError" runat="server">There was an error while trying to send the email. Please try again.</div>
            
                <div class="form-horizontal">
                    <fieldset>
                    
                        <legend>Enter login id and password to get access into the system</legend>
                        
                        <div class="control-group">
                            <asp:Label ID="lblLoginId" runat="server" Text="Login Id" AssociatedControlID="txtLoginId" CssClass="control-label"></asp:Label>
                            <div class="controls">
                                <asp:TextBox ID="txtLoginId" runat="server" CssClass="input-large"></asp:TextBox>
                                <p class="help-inline"></p>
                        	</div>
                        </div>
                        
                        <div class="control-group">
                            <asp:Label ID="lblPassword" runat="server" Text="Password" AssociatedControlID="txtPassword" CssClass="control-label"></asp:Label>
                            <div class="controls">
                                <asp:TextBox ID="txtPassword" runat="server" CssClass="input-large" TextMode="Password"></asp:TextBox>
                                <p class="help-inline"></p>
                        	</div>
                        </div>
                        
                        <div class="form-actions">
                            <asp:Button ID="LoginButton" runat="server" CssClass="btn btn-primary" 
                                Text="Login" onclick="LoginButton_Click" />&nbsp;&nbsp;&nbsp;
                            <a href="#ForgetPassword" data-toggle="modal">Forget Password?</a>
                        </div>
                        
                    </fieldset>
                </div>
                
            </div>
        </div>
    </div><!--body ends-->


    <div class="modal hide fade" id="ForgetPassword">
        <div class="modal-header">
            <a class="close" data-dismiss="modal">×</a>
            <h3>Forget Password</h3>
        </div>
        <div class="modal-body">
            <p>If you forget your password then enter your email address and then we'll send a link to reset your password.</p>
            <div class="form-horizontal">
                <fieldset>
                    
                    <div class="control-group">
                        <asp:Label ID="lblEmail" runat="server" Text="Email" AssociatedControlID="txtEmail" CssClass="control-label"></asp:Label>
                        <div class="controls">
                            <asp:TextBox ID="txtEmail" runat="server" CssClass="input-xlarge"></asp:TextBox>
                            <p class="help-block"></p>
                        </div>
                    </div>
                    
                </fieldset>
            </div>
        </div>
        <div class="modal-footer">
            <a href="#" class="btn" data-dismiss="modal">Close</a>
            <asp:Button ID="ResetPasswordButton" runat="server" Text="Reset Password" 
                CssClass="btn btn-primary" onclick="ResetPasswordButton_Click" />
        </div>
    </div><!--ForgetPassword modal ends-->

</asp:Content>
